package com.huawei.esdk.tpoa.business.oa.mapping;

import java.util.HashMap;
import java.util.Map;

public class TPOADataMapping
{
    //key为TP 会议的会议Id, value为exchange会议的会议Id
    public final static Map<String, String> confIdMapping = new HashMap<String, String>();
    
    //key为room类型邮箱地址，value为TP siteUri
    public final static Map<String, String> siteUriMapping = new HashMap<String, String>();
    
    public static String getRoomMailAddressBysiteUri(String siteUri)
    {
        for(java.util.Map.Entry<String, String> entry : siteUriMapping.entrySet())
        {
            if(entry.getValue().equals(siteUri))
            {
                return entry.getKey();
            }
        }
        return null;
    }
    
    public static String getTPConfIdByExchangeConfId(String exchangeConfId)
    {
        for(java.util.Map.Entry<String, String> entry : confIdMapping.entrySet())
        {
            if(entry.getValue().equals(exchangeConfId))
            {
                return entry.getKey();
            }
        }
        return null;
    }
}
